<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:jsf="http://xmlns.jcp.org/jsf/"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <f:view contentType="text/html" encoding="UTF-8">
        <ui:debug hotkey="x" rendered="#{facesContext.application.projectStage == 'Development'}" />
        <h:head>
            <title>CDI 2.0: Event Priority</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
        </h:head>
        <h:body>
            <h1>CDI 2.0: Event Priority</h1>
            <h:form id="form" prependId="false">

                <h:panelGroup layout="block">
                    <h:outputLabel for="messageInput">Message</h:outputLabel>
                    <h:inputText 
                        id="messageInput" 
                        value="#{eventBean.message}"/>
                </h:panelGroup>
                Input text:#{eventBean.message}
                <div>
                    <h:commandButton 
                        id="sendMessage2" 
                        type="button"
                        action="#{eventBean.fireEvent()}" 
                        value="Send Message from Input Box">
                        <f:ajax execute="@form" render="@all"/>
                    </h:commandButton>
                </div>

            </h:form> 
        </h:body> 
    </f:view>
</html>
